<?xml version="1.0"?>
<Template originator   = "Ben Motmans"
          created      = "02/16/2005"
          lastModified = "02/16/2005">
	
	<!-- Template Header -->
	<TemplateConfiguration>
		<_Name>Gtk# 2.0 Project</_Name>
		<Category>other/net/general</Category>
		<Icon>md-gui-project</Icon>
		<Image id="md-gui-project" />
		<LanguageName>C#</LanguageName>
		<_Description>Creates a Gtk# 2.0 project.</_Description>
		<DefaultFilename>GtkSharpProject</DefaultFilename>
		<GroupId>md-gtk-project</GroupId>
	</TemplateConfiguration>
	
	<!-- Actions -->
	<Actions>
		<Open filename = "Program.cs"/>
	</Actions>
	
	<!-- Template Content -->
	<Combine name = "${ProjectName}" directory = ".">
		<Options>
			<StartupProject>${ProjectName}</StartupProject>
		</Options>
		
		<Project name = "${ProjectName}" directory = ".">
			<Options Target = "WinExe"/>
			
			<References>
				<Reference type="Package" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
				<Reference type="Package" SpecificVersion="false" refto="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
				<Reference type="Package" SpecificVersion="false" refto="gdk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
				<Reference type="Package" SpecificVersion="false" refto="glib-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
				<Reference type="Package" SpecificVersion="false" refto="glade-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
				<Reference type="Package" SpecificVersion="false" refto="pango-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
				<Reference type="Package" SpecificVersion="false" refto="atk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
			</References>
		
			<Files>
			
			<!-- A window template -->
			
				<Widget>
					<SteticTemplate>
					  <widget class="Gtk.Window" id="MainWindow" design-size="400 300">
					    <property name="Title" translatable="yes">${Name}</property>
					    <property name="WindowPosition">CenterOnParent</property>
					    <signal name="DeleteEvent" handler="OnDeleteEvent" />
				        <child>
				          <placeholder />
				        </child>
					  </widget>			
					</SteticTemplate>
					
					<!-- Class bound to the window -->
				
					<File name="MainWindow.cs" AddStandardHeader="True">
<![CDATA[using System;
using Gtk;

public partial class MainWindow: Gtk.Window
{	
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();
	}
	
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
}]]>
					</File>
				</Widget>
				
				<!-- The main class -->
				
				<File name="Program.cs" AddStandardHeader="True">
<![CDATA[using System;
using Gtk;

namespace ${Namespace}
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Application.Init ();
			MainWindow win = new MainWindow ();
			win.Show ();
			Application.Run ();
		}
	}
}]]>
				</File>
				
				<FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
			</Files>
		</Project>
	</Combine>
</Template>
